import { createRoot } from 'react-dom/client'
import {Provider} from 'react-redux'
import App from './App'
import store from './store'

const root = createRoot(document.getElementById('root'))
root.render(
  // 注入:把store注入到Provider组件中,然后包裹App组件
  <Provider store={store}><App /></Provider>
)
